import requests


if __name__ == '__main__':
    res = requests.post('http://localhost:5000/inv-base-info', data={'username': 'yczha'},
    files={'file': ('test_img.png', open('example/test_img.png', 'rb'))})
    if res.status_code == 200:
        print(res.json())
    else:
        print('错误码：', res.status_code)
